﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CCF20Model.ConfigurationFile
{
    public class OtherConfiguration : IConfiguration
    {
        
        private IConfiguration _previousConfig;
        private string strResult = string.Empty;

        public OtherConfiguration(IConfiguration previousConfig)
        {
            _previousConfig = previousConfig;
        }

        public string VerifyResult()
        {
            WiseLinkConfiguration myConfig = ConfiguraitonHelper.MyConfiguration;

            if (myConfig.hasChanged)
            {
                strResult = "Configuration Changed";
            }
            return string.Format("{0} \r\n{1}", _previousConfig.VerifyResult(), strResult);
        }

    }
}
